package com.zhx.rabbit.controller;

import com.zhx.rabbit.sender.Sender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhanghaixuan
 * @date 2020-02-22 12:54
 */
@RestController
public class SenderController {

    @Autowired
    private Sender sender;

    @GetMapping("/send")
    public Object sendFanout() {
        sender.sendTopic();
        return "ok";
    }
}
